<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<script type="text/javascript">
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
</script>
    <div class="content-wrap">
        <div class="wrapper" style="bottom: 50px;">
            <ul class="nav nav-tabs">
                <li class="active">
                    <a href="#"   onclick="loadDiv('rigthCenterDiv','${ctx}/csm/expDict/dialog?expCode=${expDict.expCode}&expName=${expDict.expName}')">规格列表</a>
                </li>
                <li>
                    <a href="#" onclick="loadDiv('rigthCenterDiv','${ctx}/csm/expDict/form?expCode=${expDict.expCode}&expName=${expDict.expName}')">添加规格</a>
                </li>
            </ul>
            <section class="panel panel-default">
                <div class="panel-body">
                    <div class="table-responsive no-border">
                        <table id="contentTable" class="table table-bordered mg-t datatable">
                            <thead>
                                <tr>
                                    <th hidden>消耗品代码</th>
                                    <th>消耗品名称</th>
                                    <th>规格</th>
                                    <th>单位</th>
                                    <th>全成本分类</th>
                                    <th>型号</th>
                                    <th>材质</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                            <c:forEach items="${expDictList}" var="expDict">
                                <tr>
                                        <td hidden> ${expDict.expCode}</td>
                                        <td> ${expDict.expName}</td>
                                        <td> ${expDict.expSpec}</td>
                                        <td>${fns:getDictLabels(expDict.units, 'SPEC_UNIT', '')}</td>
                                        <td>${fns:getDictLabels(expDict.htcaClass, 'COST_CLASS', '')}</td>
                                        <td> ${expDict.expModel}</td>
                                        <td> ${expDict.expIndicator}</td>
                                    <td>
                                        <a href="#"  class="btn btn-success btn-xs" onclick="loadDiv('rigthCenterDiv','${ctx}/csm/expDict/form?id=${expDict.id}')">修改</a>
                                        <%--<a href="#"  class="applyBt btn btn-danger btn-xs" onclick="confirmExtend('确认要删除该消耗品规格吗？',function(){delLoad('rigthCenterDiv','${ctx}/csm/expDict/delete?id=${expDict.id}','${ctx}/csm/expDict/dialog?expCode=${expDict.expCode}&expName=${expDict.expName}')})">删除</a>--%>
                                    </td>
                                </tr>
                            </c:forEach>
                            </tbody>
                        </table>
                    </div>
                </div>
            </section>
        </div>
    </div>